package com.dubbo.provider.Service.Impl;

import com.dubbo.api.UserServiceApi;
import com.dubbo.mapper.UsersMapper;
import com.dubbo.pojo.Users;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;


@Service
public class UsersServiceImpl implements UserServiceApi {
    @Autowired
    private UsersMapper usersMapper;

    @Override
    public Users login(Users users) {
        Users user = usersMapper.findUser(users);
        /*System.out.println("UserControllerImpl:"+user);
        System.out.println("UsersControllerImpl:"+users);*/
        return user;
    }
}
